package com.lagou.edu.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/email")
public class EmailController {

    /**
     * 发送验证码到邮箱，true成功，false失败
     * 发送邮件
     * @param email
     * @param code
     * @return
     */
    @GetMapping("/send/{email}/{code}")
    public Boolean send(@PathVariable String email, @PathVariable String code){
        System.out.println("email:"+email);
        System.out.println("code:"+code);
        return true;
    }

}
